import { Layout } from '@fl/utils/routerHelper'

import accountManagement from './modules/account-management'
import enterpriseManagement from './modules/enterprise-management'
import messageCenter from './modules/message-center'
import orderManagement from './modules/order-management'
import productManagement from './modules/product-management'

const SupplierPagesRoute: AppRouteRecordRaw = {
    children: [
        messageCenter,
        enterpriseManagement,
        orderManagement,
        productManagement,
        accountManagement,
    ],
    component: Layout,
    meta: {
        roles: ['admin'],
        title: '供应商端',
    },
    name: 'supplier-pages',
    path: '/supplier-pages',
    redirect: '/supplier-pages/enterprise-management/certification',
}

export default SupplierPagesRoute
